﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace BRMC.IntelligentCommunity.Migrations
{
    public partial class update_table : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_user_dep_role",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<int>(
            //    name: "Usertype",
            //    table: "App_user",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<string>(
            //    name: "Timestamp",
            //    table: "App_user",
            //    maxLength: 50,
            //    nullable: true,
            //    oldClrType: typeof(string),
            //    oldNullable: true);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_user",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<int>(
            //    name: "Status",
            //    table: "App_rule",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<int>(
            //    name: "Pid",
            //    table: "App_rule",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_role_rule",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_role",
            //    nullable: false,
            //    defaultValue: 0,
            //    oldClrType: typeof(int));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_user_dep_role",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Usertype",
            //    table: "App_user",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<string>(
            //    name: "Timestamp",
            //    table: "App_user",
            //    nullable: true,
            //    oldClrType: typeof(string),
            //    oldMaxLength: 50,
            //    oldNullable: true);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_user",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Status",
            //    table: "App_rule",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Pid",
            //    table: "App_rule",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_role_rule",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);

            //migrationBuilder.AlterColumn<int>(
            //    name: "Isdel",
            //    table: "App_role",
            //    nullable: false,
            //    oldClrType: typeof(int),
            //    oldDefaultValue: 0);
        }
    }
}
